<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>管理印章</title>
    <link rel="stylesheet" href="/asset/layui/css/layui.css">
    <link rel="stylesheet" href="/asset/css/index.css">
    <script src="/asset/layui/layui.js"></script>
    <link rel="Shortcut Icon" href="cachet.ico">
</head>
<body >
<div class="x-body">

	<div class="layui-form-item">
	    <div class="layui-inline">
	      <label class="layui-form-label">印章名称</label>
	      <div class="layui-input-inline layui-form-mid layui-word-aux">
	      	${seal.sealName}
	      </div>
	    </div>
	    <div class="layui-inline">
	      <label class="layui-form-label">创建时间</label>
	      <div class="layui-input-inline layui-form-mid layui-word-aux">
	      	${seal.createTime?string("yyyy-MM-dd HH:mm:ss")}
	      </div>
	    </div>
	</div>

		
	<div class="layui-form-item">
	    <div class="layui-inline">
	      <label class="layui-form-label">强制拍照</label>
	      <div class="layui-input-inline layui-form-mid layui-word-aux">
	      	<#if seal.isForcedPhoto=="Y">
	      		是
	      	<#else>
	      		否
	      	</#if>
	      </div>
	    </div>
	    
	    <div class="layui-inline">
	      <label class="layui-form-label">状态</label>
	      <div class="layui-input-inline layui-form-mid layui-word-aux">
	      		<@linkage type="SEAL_STATUS" key=seal.sealStatus>
        		<span class="${linkage.style}">${linkage.name}</span>
        		</@linkage>
	      </div>
	    </div>
	</div>
	
	<div class="layui-form-item">
	    <div class="layui-inline">
	      <label class="layui-form-label">申请总数</label>
	      <div class="layui-input-inline layui-form-mid layui-word-aux">
	      	${seal.applyTimes}
	      	
	      </div>
	    </div>
	</div>
	
	
	<table class="layui-table mytable" lay-even="" lay-skin="nob">
        <thead>
            <tr>
                <th>印章名称</th>
                <th>设备编号</th>
                <th>设备标识</th>
                <th>设备型号</th>
                <th>版本号</th>
                <th>失效日期</th>
                <th>当前状态</th>
            </tr>
        </thead>
        <tbody>
        	<#list seal.devicesList as item>
            <tr>
                <td>${item.seal.sealName}</td>
                <td>${item.devicesCode}</td>
                <td>${item.alias}</td>
                <td>${item.model}</td>
                <td>${item.devicesVerson}</td>
                <td>
                	<#if item.expireDate??>
                	${item.expireDate?string("yyyy-MM-dd HH:mm:ss")}
                	</#if>
                </td>
                <td>
                	<@linkage type="DEVICES_STATUS" key=item.devicesStatus>
            		<span class="${linkage.style}">${linkage.name}</span>
            		</@linkage>
                </td>
            </tr>
            </#list>
        </tbody>
    </table>
	
  </div>
</div>

</body>
</html>